<?php

define('YII_PATH', $_SERVER['YII_PATH']);
defined('YII_DEBUG') or define('YII_DEBUG', false);
defined('YII_TRACE_LEVEL') or define('YII_TRACE_LEVEL',3);
define('JS_VERSION', 'v1');
define('CSS_VERSION', 'v1');
define('BASE_URL', '/api/');
define('MANAGE_URL', 'http://www.kaipai.net:81/manage/');
define('MANAGE_DIR', BASE_PATH . '/../manage');

define('DB_CONN', 'default');
define('DB_READ', 'read');
define('DB_WRITE', 'write');

define('ITEM_LOGO_URL', MANAGE_URL . 'images/itemlogo');
define('ITEM_LOGO_DIR', MANAGE_DIR . '/images/itemlogo');
define('AD_URL', MANAGE_URL . 'images/ad');
define('AD_DIR', MANAGE_DIR . '/images/ad');
//图片资源目录
define('PHOTO_URL', MANAGE_URL . 'images/photo');
define('PHOTO_DIR', MANAGE_DIR . '/images/photo');
define('IMG_UPLOAD_TYPES', 'gif,jpg,jpeg,png');
define('IMG_UPLOAD_SIZE', 1024 * 1024 * 5);
//影片资源目录
define('MOVIE_URL', MANAGE_URL . 'images/movie');
define('MOVIE_DIR', MANAGE_DIR . '/images/movie');
define('MOVIE_UPLOAD_TYPES', 'gif,jpg,jpeg,png');
define('MOVIE_UPLOAD_SIZE', 1024 * 1024 * 5);

//女神用户
define('USER_TYPE_GIRL', 1);
//普通用户
define('USER_TYPE_MEMBER', 2);

define('ITEM_TYPE_SCHOOL', 1);
define('ITEM_TYPE_MENU', 2);
define('ITEM_TYPE_MOVIE', 3);
define('ITEM_TYPE_PHOTO', 4);
define('ITEM_TYPE_TRENDS', 5);
define('ITEM_TYPE_ARTICLE', 6);

//回复类型:支持
define('COMMENT_TYPE_SUPPORT', 1);
//回复类型:回复
define('COMMENT_TYPE_REPLY', 2);

define('UNSEND', 0);
define('SENDED', 1);

//官网ID
define('USERID', 46);
